#!/bin/sh
cp /etc/network/interfaces_hostapd /etc/network/interfaces
service hostapd start
update-rc.d hostapd defaults
service udhcpd start
update-rc.d udhcpd defaults
# for some unknown reason restarting the network doesn't do what it is supposed to so reboot is used
# service networking stop
# service networking start

reboot -n
